package org.jim.core.exception;

import org.jim.core.ImStatus;

public class BimException extends Exception {
    private ImStatus imStatus;

    public BimException(ImStatus imStatus) {
        this.imStatus = imStatus;
    }

    public ImStatus getImStatus() {
        return imStatus;
    }

    public void setImStatus(ImStatus imStatus) {
        this.imStatus = imStatus;
    }

    public static BimException error(ImStatus imStatus) {
        return new BimException(imStatus);
    }
}
